package com.ruoyi.inventory.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 产品结构清单-详情对象 t_product_struct_detail
 *
 * @author xwj
 * @date 2024-08-09
 */
@TableName("t_product_struct_detail")
@Data
public class ProductStructDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 结构id */
    @Excel(name = "结构id")
    @ApiModelProperty("结构id")
    private Long structId;

    /** 产品id */
    @Excel(name = "产品id")
    @ApiModelProperty("产品id")
    private Long productId;

    /** 排序 */
    @Excel(name = "排序")
    @ApiModelProperty("排序")
    private Long px;

    /** 数量 */
    @Excel(name = "数量")
    @ApiModelProperty("数量")
    private Double num;

    /** 损耗率 */
    @Excel(name = "损耗率")
    @ApiModelProperty("损耗率")
    private Double discount;

    /** 创建人id */
    @Excel(name = "创建人id")
    @ApiModelProperty("创建人id")
    private Long createId;
    private Date createTime;
    private String createBy;

    /** 更新人id */
    @Excel(name = "更新人id")
    @ApiModelProperty("更新人id")
    private Long updateId;
    private Date updateTime;
    private String updateBy;

    @TableField(exist = false)
    private String productName;
    @TableField(exist = false)
    private String productNo;
    @TableField(exist = false)
    private Double buyPrice;
    @TableField(exist = false)
    private Integer type;
    @TableField(exist = false)
    private String source;
    @TableField(exist = false)
    private String attachPath;
    @TableField(exist = false)
    private String categoryName;
    @TableField(exist = false)
    private String unitName;

}
